package tcln.sors.client.core.component.grid;

import javax.swing.table.DefaultTableModel;


/**
 * A specialized table model implementation for {@link JGrid} component. Some extensions are:
 * <ul>
 * <li>support adding column without firing any event.
 * </ul>
 * 
 * @author Truong Chau Lien Ngoc (lienngoc@gmail.com)
 */
@SuppressWarnings("serial")
public class JGridTableModel extends DefaultTableModel {

    /**
     * @param columnIdentifier
     */
    @SuppressWarnings("unchecked")
    void addColumnInternal(Object columnIdentifier) {
        this.columnIdentifiers.addElement(columnIdentifier);
    }
}
